package com.cindata

import com.cindata.dictionary.ContactType

class MortgageContact
{

    ContactType type

    static belongsTo = [contact: Contact, mortgage: Mortgage]

    static mapping = {
        autowire true
    }

    static constraints = {

        mortgage unique: ['contact', 'type']
    }
}